home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: MegaDisc
/
MegaDisc 28 (1992-05)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).zip
/
MegaDisc 28 (1992-05)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).adf
/
Programming
/
BASIC_TUTORIAL_9
/
CalcLines.bas
< prev
next >
Wrap
BASIC Source File
|
1992-05-26
|
1KB
|
49 lines
INPUT "Point Size of FONT ",ps
PRINT
INPUT "Window Height ",ws
PRINT
INPUT "Do you want a printout [Y]es [N]o ",po$
la=ws/ps:la=INT(la)
PRINT
PRINT "Lines available = ",la
PRINT
IF po$="y" OR po$="Y" THEN
OPEN "PAR:" FOR OUTPUT AS #1
PRINT #1,"Point Size of FONT ";ps
PRINT #1,""
PRINT #1,"Window Height ";ws;" Lines."
PRINT #1,""
PRINT #1,"Lines Available ";la
PRINT #1,""
END IF
bl=1
FOR tl=1 TO la
PRINT "Top of TextLine ";
PRINT USING "###";tl;
PRINT " = ";
PRINT USING "###";(tl*ps)-ps;
PRINT " Bottom of TextLine ";
PRINT USING "###";tl;
PRINT " = ";
PRINT USING "###";(tl*ps)-1
IF po$="y" OR po$="Y" THEN
PRINT #1,"Top of TextLine ";
PRINT #1,USING "###";tl;
PRINT #1," = ";
PRINT #1,USING "###";(tl*ps)-ps;
PRINT #1," Bottom of TextLine ";
PRINT #1,USING "###";tl;
PRINT #1," = ";
PRINT #1,USING "###";(tl*ps)-1
END IF
bl=bl+1
IF bl=>25 THEN
bl=1:
INPUT "press Return to Continue",dum$
END IF
NEXT tl
INPUT "Press RETURN ",dum$
CLOSE #1
SYSTEM